package com.example.pojo.wechat;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName BrokenBike
 * @Description: com.example.pojo.wechat
 * @Auther: xiwd
 * @Date: 2022/4/19 - 04 - 19 - 11:41
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BrokenBike implements Serializable {
    private static final long serialVersionUID = -980800096651915914L;
    //properties
    private Integer id;//编号id
    private String address;//地址
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS",timezone = "GMT+8")
    private Date date;//上报时间
    private String description;//描述信息
    private byte[] photo;//照片
    private String uploader;//上报人
    private String location;//位置坐标
    private Integer status;//状态值-[0-未处理;1-已处理]

    //methods
}
